package nzk.hssftemp.dummy;

import java.util.Date;

/**
 * @author N. Zulkarnaen (n.zulkarnaen@gmail.com)
 *         Date: 7/11/13
 *         Time: 11:28 AM
 * @version $Revision: 6 $
 */
public class ARCard {

    private long id;
    private Date date;
    private String number;
    private String description;
    private Date giro;
    private String currencySymbol;
    private double fxAmount;
    private double rate;
    private double debt;
    private double credit;
    private double balance;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getGiro() {
        return giro;
    }

    public void setGiro(Date giro) {
        this.giro = giro;
    }

    public String getCurrencySymbol() {
        return currencySymbol;
    }

    public void setCurrencySymbol(String currencySymbol) {
        this.currencySymbol = currencySymbol;
    }

    public double getFxAmount() {
        return fxAmount;
    }

    public void setFxAmount(double fxAmount) {
        this.fxAmount = fxAmount;
    }

    public double getRate() {
        return rate;
    }

    public void setRate(double rate) {
        this.rate = rate;
    }

    public double getDebt() {
        return debt;
    }

    public void setDebt(double debt) {
        this.debt = debt;
    }

    public double getCredit() {
        return credit;
    }

    public void setCredit(double credit) {
        this.credit = credit;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ARCard arCard = (ARCard) o;
        return id == arCard.id;
    }

    @Override
    public int hashCode() {
        return (int) (id ^ (id >>> 32));
    }
}
